{#{% extends 'Base/main.content.lists.div.html.twig' %}#}
{#{% import 'Base/list_item.twig' as listItem %}#}
{% extends 'Back/Sano/list.creator.html.twig' %}
{% import 'Back/Sano/list.item.twig' as listItem %}
{#默认不能删除和新增#}
{#{% block addBtn %}{% endblock %}#}
{#{% block delBtn %}{% endblock %}#}
{% block tableHead %}
    <tr>
        <th align="" width="5%">选择</th>
        <th align="" width="">{{config.name.label}}</th>
        <th align="" width="">{{config.url.label}}</th>
        <th align="" width="">{{config.icon.label}}</th>
        <th align="" width="">{{config.sort.label}}</th>
        <th align="" width="">{{config.parent.label}}</th>
        <th align="center" width="18%">操作</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for Entity in lists %}
        <tr>
            <td align='' width=''>
                <span class="checkall"><input lay-skin="primary" type="checkbox" name="ids[]" value="{{ Entity.data.id }}"/></span>
            </td>
            <td align='' width='' id='name_{{ Entity.data.id }}'>
                {{ listItem.tab(Entity.level) }}
                {{ listItem.text('name',Entity.data.name,Entity.data.id) }}
            </td>
            <td align='' width='' id='url_{{ Entity.data.id }}'>
                {{ listItem.text('url',Entity.data.url,Entity.data.id) }}
            </td>
            <td align='' width='' id='icon_{{ Entity.data.id }}'>
                {{ listItem.icon('icon',Entity.data.icon,Entity.data.id) }}
            </td>
            <td align='' width='' id='sort_{{ Entity.data.id }}'>
                {{ listItem.text('sort',Entity.data.sort,Entity.data.id) }}
            </td>
            <td align='' width='' id='parent_{{ Entity.data.id }}'>
                {{ listItem.text('parent',Entity.data.parent,Entity.data.id) }}
            </td>
            <td align='' width=''>
                {{ listItem.manage('AdminMenu','',Entity.data.id) }}
                {{ listItem.copy('AdminMenu','',Entity.data.id) }}
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
{% endblock %}

